package eclipse1;

public class Test2 {
    public static void main(String[] args) {
        Car car1 = new Car();
        Car car2 = new Car();
        car1.brand = "宝马";
        car1.color = "白色";
        car1.speed = 180;

        car2.brand = "奔驰";
        car2.color = "黑色";
        car2.speed = 120;
        car1.go();
        car2.go();

        car1.stop();;
        car2.stop();
    }
}
